import cv2
import matplotlib.pyplot as plt
import numpy as np


def show(img):
    cv2.imshow("img", img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

img = cv2.imread("./01_Picture/04_LenaNoise.png")
show(img)
# 均值滤波
blur = cv2.blur(img, (3, 3))
show(blur)

# 方框滤波 normalize=False容易越界
box = cv2.boxFilter(img, -1, (3, 3), normalize=True)
show(box)







